﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace Upreader.Application.Model
{
    public interface IDomainContext : IDisposable
    {
        /// <summary>
        /// Persists any changes back to the underlying datasources
        /// </summary>
        IModelChanges SaveChanges();

        /// <summary>
        /// Get a set of servers
        /// </summary>
        IModelCollection<Server> Servers { get; }

        /// <summary>
        /// Get a set of servers
        /// </summary>
        IModelCollection<Download> Downloads { get; }

        /// <summary>
        /// Get a set of files
        /// </summary>
        IModelCollection<File> Files { get; }

        /// <summary>
        /// Get a set of segments
        /// </summary>
        IModelCollection<Segment> Segments { get; }
    }
}
